﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BdiSyndicatonWarmup
{
    public class BdiFileRead
    {
        public static ArrayList GetCsvFileName(string folderPath)
        {
            ArrayList list = new ArrayList();

            DirectoryInfo folder = new DirectoryInfo(folderPath);
            if (folder.Exists)
            {
                foreach (FileInfo file in folder.GetFiles("*.Csv"))
                {
                    list.Add(file.Name);
                }
            }

            return list;
        }
    }
}
